home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 551-575 / disk_575 / pplib / include / libraries / ppbase.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  1KB  |  66 lines

  1. #ifndef LIBRARIES_PPBASE_H
  2. #define LIBRARIES_PPBASE_H
  3. /*
  4. **    $Filename: libraries/ppbase.h $
  5. **    $Release: 1.3 $
  6. **
  7. **    (C) Copyright 1991 Nico François
  8. **        All Rights Reserved
  9. */
  10.  
  11. #ifndef    EXEC_TYPES_H
  12. #include    <exec/types.h>
  13. #endif    /* EXEC_TYPES_H */
  14.  
  15. #ifndef    EXEC_LISTS_H
  16. #include    <exec/lists.h>
  17. #endif    /* EXEC_LISTS_H */
  18.  
  19. #ifndef    EXEC_LIBRARIES_H
  20. #include    <exec/libraries.h>
  21. #endif    /* EXEC_LIBRARIES_H */
  22.  
  23. #define    PPNAME        "powerpacker.library"
  24. #define    PPVERSION    35L
  25.  
  26. struct PPBase {
  27.    struct Library LibNode;
  28.    UBYTE pp_Flags;
  29.    UBYTE pad;
  30.    BPTR pp_SegList;
  31.    };
  32.  
  33. /* decrunch colors for ppLoadData and ppDecrunchBuffer */
  34. #define DECR_COL0         0L
  35. #define DECR_COL1         1L
  36. #define DECR_POINTER         2L
  37. #define DECR_SCROLL         3L
  38. #define DECR_NONE         4L
  39.  
  40. /* error codes returned by ppLoadData */
  41. #define PP_OPENERR        -1L
  42. #define PP_READERR        -2L
  43. #define PP_NOMEMORY        -3L
  44. #define PP_CRYPTED        -4L
  45. #define PP_PASSERR        -5L
  46. #define PP_UNKNOWNPP        -6L
  47. #define PP_EMPTYFILE        -7L
  48.  
  49. /* size of speedup buffer */
  50. #define SPEEDUP_BUFFLARGE     0L
  51. #define SPEEDUP_BUFFMEDIUM     1L
  52. #define SPEEDUP_BUFFSMALL     2L
  53.  
  54. /* crunching efficiency */
  55. #define CRUN_FAST         0L
  56. #define CRUN_MEDIOCRE         1L
  57. #define CRUN_GOOD         2L
  58. #define CRUN_VERYGOOD         3L
  59. #define CRUN_BEST         4L
  60.  
  61. /* possible return values from ppCrunchBuffer() */
  62. #define PP_CRUNCHABORTED     0L
  63. #define PP_BUFFEROVERFLOW     ((ULONG)~0L)
  64.  
  65. #endif    /* LIBRARIES_PPBASE_H */
  66.